home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / scuba.swf / scripts / DefineSprite_283 / frame_32 / DoAction.as
Text File  |  2010-03-13  |  437b  |  21 lines

  1. if(0 < _root.gOxygenStatus)
  2. {
  3.    _root.gOxygenStatus--;
  4.    _root.oxygenGauge.gotoAndStop("oxy" + _root.gOxygenStatus);
  5.    vOxyBegin = Math.round(Number(getTimer() / 1000));
  6.    if(_root.LOW_OXYGEN >= _root.gOxygenStatus)
  7.    {
  8.       _root.lowOxyWarning.gotoAndStop("warning");
  9.    }
  10.    else
  11.    {
  12.       _root.lowOxyWarning.gotoAndStop("base");
  13.    }
  14.    gotoAndPlay(10);
  15. }
  16. else
  17. {
  18.    _root.fnEndGame();
  19.    gotoAndStop(1);
  20. }
  21.